// 生成随机商户订单号
let merchantNo = function() {
	let chars = 'ABCDEFGHIJKLMNUPQRSTUVWYZabcdefghijklmn2345678'
	let maxPos = chars.length
	let res = ''
	for (let i = 0; i < 32; i++) {
		res += chars.charAt(Math.floor(Math.random() * maxPos))
	}
	return res
}

// 生成随机订单编号
let orderNo = function() {
	let code = ''
	for (let i = 0; i < 6; i++) {
		code += Math.floor(Math.random() * 10)
	}
	code = new Date().getTime() + code
	return code
}

export { merchantNo,orderNo }
